<code>gridSize</code> - size of the grid in pixels